﻿using PesticideManage.API.Services.Identity.UserAggregate;

namespace PesticideManage.API.Services.JWT;

public interface IAuthTokenService
{
    /// <summary>
    /// 创建令牌
    /// </summary>
    /// <param name="user"></param>
    /// <returns></returns>
    Task<AuthTokenDTO> CreateAuthTokenAsync(User user);
    /// <summary>
    /// 刷新令牌
    /// </summary>
    /// <param name="token"></param>
    /// <returns></returns>
    Task<AuthTokenDTO> RefreshAuthTokenAsync(AuthTokenDTO token);
}